package com.example.demo.service.impl;

import com.example.demo.entity.Abc;
import com.example.demo.mapper.AbcMapper;
import com.example.demo.service.ServiceAbc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ServiceAbcImpl implements ServiceAbc {
    @Autowired
    private AbcMapper abcMapper;

    @Override
    public Boolean add(Abc abc) {
        int a = abcMapper.add(abc);
        if (a > 0) return true;
        return false;
    }

    @Override
    public boolean delet(Long id) {
        int c = abcMapper.delet(id);
        if (c > 0) return true;
        return false;
    }
}
